package com.shop.front.dao.system;

import com.shop.jpa.BaseDao;
import com.shop.domain.system.NewSystemConfig;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * <p>数据操作HQL</p>
 * <p>Table: t_new_system_config - 新系统配置表</p>
 *
 * @author generator
 * @date 2018-09-22 05:00:27
 */
public interface NewSystemConfigDao extends BaseDao<NewSystemConfig, Integer> {

    @Query("from NewSystemConfig where category = ?1 and code = ?2 and is_deleted = 0")
    public NewSystemConfig findByCode(String category,String code);


    @Query("from NewSystemConfig where category = ?1 and is_deleted = 0")
    public List<NewSystemConfig> findByCategoryList(String category);

}